/**
 *
 */
package com.naiterui.ehp.bp.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户标签关系表
 * @author fangguanhong
 * @since 1.0.0
 */
@Entity
@Table(name = "cms_user_label")
public class UserLabel {

    /** 用户类型：商务代表 */
    public static final Integer USER_TYPE_BUSINESS = 0;
    /** 用户类型：医生 */
    public static final Integer USER_TYPE_DOCTOR = 1;
    /** 用户类型：患者 */
    public static final Integer USER_TYPE_PATIENT = 2;

    /**
     * 专家名医
     */
    public static final int LABEL_ID_TYPE_CLINIC = 1;
    /**
     * HIS医生
     */
    public static final int LABEL_ID_TYPE_HIS = 2;

    /**
     * 主键ID：<code>id</code>
     */
    private Long id;
    /**
     * 用户ID：<code>userId</code>
     */
    private Long userId;
    /**
     * 用户类型(0,商务代表；1,医生；2,患者)：<code>userType</code>
     */
    private Integer userType;
    /**
     * 标签ID：<code>LabelId</code>
     */
    private Long LabelId;
    /**
     * 创建人：<code>createdBy</code>
     */
    private String createdBy;
    /**
     * 创建时间：<code>createdAt</code>
     */
    private Date createdAt;
    /**
     * 修改人：<code>changedBy</code>
     */
    private String changedBy;
    /**
     * 修改时间：<code>changedAt</code>
     */
    private Date changedAt;
    /**
     * 版本号：<code>version</code>
     */
    private Integer version;

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "user_id")
    public Long getUserId() {
        return this.userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Column(name = "user_type")
    public Integer getUserType() {
        return this.userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    @Column(name = "label_id")
    public Long getLabelId() {
        return this.LabelId;
    }

    public void setLabelId(Long labelId) {
        this.LabelId = labelId;
    }

    @Column(name = "created_by")
    public String getCreatedBy() {
        return this.createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    @Column(name = "created_at")
    public Date getCreatedAt() {
        return this.createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    @Column(name = "changed_by")
    public String getChangedBy() {
        return this.changedBy;
    }

    public void setChangedBy(String changedBy) {
        this.changedBy = changedBy;
    }

    @Column(name = "changed_at")
    public Date getChangedAt() {
        return this.changedAt;
    }

    public void setChangedAt(Date changedAt) {
        this.changedAt = changedAt;
    }

    @Column(name = "version")
    public Integer getVersion() {
        return this.version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }
}
